package com.lvhx.config;

import com.lvhx.pojo.Account;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.math.BigDecimal;

@Configuration
public class AccountConfig {

    @Bean
    public Account accountA(){
        Account account = new Account(new BigDecimal("10000"));
        return account;
    }

    @Bean
    public Account accountB(){
        Account account = new Account(new BigDecimal("10000"));
        return account;
    }
}
